fsck: Don't load all object names into memory
authorColin Walters <walters@verbum.org>
Thu, 9 Jun 2022 22:32:09 +0000 (18:32 -0400)
committerColin Walters <walters@verbum.org>
Fri, 10 Jun 2022 01:01:03 +0000 (21:01 -0400)
commit6981633f9c91abc8b8f8776813f75b992c7cdf38
treebf6afb4a31f37517d444cca580e3f45acb78356c
parenta13d812368639865bacb59237e33a6a09035b771
fsck: Don't load all object names into memory

We recently discovered `list_objects()` is inefficient with memory.
The more efficient `list_objects_set()` API isn't yet public, but
this fsck code actually just skips over non-commit objects, and
we already have an API to list just those.
src/ostree/ot-builtin-fsck.c